package cn.kgc.ebook.ebookmanagement.service;


import cn.kgc.ebook.ebookmanagement.pojo.Entry;
import com.github.pagehelper.PageInfo;

/**
 * @author shkstart
 * @create 2020-05-18 16:41
 */
public interface EntryService {
    //    根据分类id查询，并且分页
    public PageInfo<Entry> select(Integer pageNum, Integer pageSize, Integer categoryId);

    //新增图书
    public Integer add(Entry entry);

    //根据id查询图书
    public Entry selectById(Integer id);

    //根据id修改图书
    public Integer update(Entry entry);

    //根据id删除
    public Integer delete(Integer id);
}
